344
---
title: "Dan's Dashboarding"
output:
flexdashboard::flex_dashboard:
orientation: row
vertical_layout: fill
social: ["menu"]
source_code: embed
theme:
version: 4
bootswatch: sandstone
---
```{r setup, include=FALSE}
#bootswatch.com for more themes
library(flexdashboard)
library(tidyverse)
library(palmerpenguins)
library(plotly)
library(DT)
library(fontawesome)
data("penguins")
```
Plots {data-navmenu="Pages"}
=====================================================================
Sidebar{.sidebar}
------------------------------------------------------------------
### Penguin Stats
The number of penguins in the data is `r nrow(penguins)`
Row
------------------------------------------------------------------
### Number of penguins
```{r}
valueBox(nrow(penguins), icon = "fa-linux")
#fontawesome.com for other icons and options
```
### Avg Body Mass
```{r}
avg_mass = round(mean(penguins$body_mass_g, na.rm=T), 1)
gauge(avg_mass,
min(0),
max = max(penguins$body_mass_g, na.rm=T),
gaugeSectors(success = c(4000,6300),
warning = c(2000,3999),
danger = c(0,1999)))
```
Column {.tabset}
---------------------------------------------------------------------
### Chart A
```{r}
a= penguins %>% ggplot(aes(x=bill_length_mm, y = bill_depth_mm, color = species))+geom_point()
ggplotly(a)
#htmlwidgets.org great resource for plotting widgets
```
---------------------------------------------------------------------
### Chart B
```{r}
```
### Chart C
```{r}
```
Data {data-navmenu="Pages"}
=====================================================================
```{r}
penguins %>% datatable(extensions = "Buttons",
options = list(dom="Blfrtip",
buttons = c("copy", "csv", "excel", "pdf", "print")))
#use datatables.net to customize your html tables
```